//
//  RepaymentReminderTableViewCell.m
//  SulitLoan
//
//  Created by 虞嘉伟 on 2025/3/2.
//

#import "RepaymentReminderTableViewCell.h"
#import <YYKit.h>
#import <Masonry.h>


@implementation RepaymentReminderTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.contentView.backgroundColor = UIColorHex(#1B1B1B);
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        [self.contentView addSubview:self.bgView];
        [self.bgView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.edges.equalTo(self.contentView);
        }];
        
        SLCarouselComponent *carousel = [SLCarouselComponent new];
        _carousel = carousel;
        [self.contentView addSubview:carousel];
        //carousel.stringGroup = @[@"Late order reminder", @"2", @"3", @"4"];
        [carousel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.right.equalTo(self.bgView).inset(19);
            make.top.mas_equalTo(self.bgView).offset(25);
            make.height.mas_equalTo(45);
            make.bottom.equalTo(self.bgView);
        }];
    }
    return self;
}

- (UIView *)bgView {
    if (!_bgView) {
        _bgView = [UIView new];
        _bgView.backgroundColor = UIColorHex(#F5F5F5);
    }
    return _bgView;
}

@end
